package com.imti.mall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.pms.pojo.PmsProductAttributeValue;
import com.imti.mall.product.mapper.PmsBrandCategoryDynaSqlProvider;
import com.imti.mall.product.mapper.PmsProductAttributeDynaSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * ClassName: PmsProductAttributeValueDao
 * Description:
 * date: 2022/9/16 15:41
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
@Mapper
public interface PmsProductAttributeValueDao extends BaseMapper<PmsProductAttributeValue> {
    /**
     * 修改商品属性值表
     * @param pmsProductAttributeValue
     * @return
     */
    @UpdateProvider(type = PmsBrandCategoryDynaSqlProvider.class ,method = "updatePmsProductAttributeValue")
    public boolean updatePmsProductAttributeValue(PmsProductAttributeValue pmsProductAttributeValue);

    /**
     * 查询商品属性值表
     * @param pmsProductAttributeValue
     * @return
     */
    @SelectProvider(type = PmsBrandCategoryDynaSqlProvider.class ,method = "findPmsProductAttributeValue")
    public List<PmsProductAttributeValue> findPmsProductAttributeValue(PmsProductAttributeValue pmsProductAttributeValue);

}
